import request from '@/utils/request'

// api地址
const api = {
  list: 'category/list',
  loadAll: '/app/category/loadTree',
  loadRoot: '/app/category/loadRoot'
}

// 页面数据
export function list() {
  return request.get(api.list)
}

// 页面数据
export function loadAll() {
  return request.get(api.loadAll)
}

export function loadRoot() {
  return request.get(api.loadRoot)
}
